
import { lazy } from 'react'
let routerArr = [
  {
    path: '/all',
    component: lazy(() => import('../Pages/All')),
    children: [
      {
        path: '/all/home',
        component: lazy(() => import('../Pages/Home'))
      },
      {
        path: '/all/classfiy',
        component: lazy(() => import('../Pages/Classfiy'))
      },
      {
        path: '/all/shop',
        component: lazy(() => import('../Pages/Shop'))
      },
      {
        path: '/all/mine',
        component: lazy(() => import('../Pages/Mine'))
      },
      {
        from: '/all',
        to: '/all/home'
      }

    ]
  },
  {
    path: '/jk',
    component: lazy(() => import('../Pages/Jk'))
  },
  {
    path: '/login',
    component: lazy(() => import('../Pages/Login'))
  },
  {
    from: '/',
    to: '/all'
  }
]
export default routerArr 